import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      name: "home",
      component: () => import("@/views/h_home/Home.vue")
    },
    {
      path: "/test",
      name: "test",
      component: () => import("@/views/h_test/H_Test.vue")
    },
    {
      path: "/product",
      name: "product",
      component: () => import("@/views/h_product/H_Product.vue")
    },
    {
      path: "/about",
      name: "about",
      component: () =>
        import(/* webpackChunkName: "about" */ "@/views/h_about/About.vue")
    },
    {
      path: "/*",
      redirect: "/"
    }
  ]
});
